﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>NameSpaces in Javascript</title>
    <script src="../Scripts/jquery-1.8.2.min.js"></script>
</head>
<body>
    <p>
    </p>
    <script type="text/javascript">
        var TypeScriptingStuff;
        (function (TypeScriptingStuff) {
            var Person = (function () {
                function Person(FirstName, LastName) {
                    this.FirstName = FirstName;
                    this.LastName = LastName;
                }
                Person.prototype.getFullName = function () {
                    return this.FirstName + " " + this.LastName;
                };
                return Person;
            })();
            TypeScriptingStuff.Person = Person;
        })(TypeScriptingStuff || (TypeScriptingStuff = {}));


        var person = new TypeScriptingStuff.Person("pato", "loco");
        $('p').html(person.getFullName());
    </script>
</body>
</html>
